<?php
namespace app\business\api;
use think\Controller;
use think\Request;

class Banner extends Controller
{
    /**
     * banner
     * http://api.ybcpq.cn/business/banner/getBanner
     */
    public function getBanner()
    {
        $model = model("Banner");
        $data = $model->getBanner();

        $result = array('code'=>SUCCESS,'msg'=>'Success','data'=>$data);
        return json($result);

    }
}